package com.bjpowernode.dubbo;

import com.bjpowernode.dubbo.service.TwoService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {
    public static void main(String[] args) {
        String path = "dubbo-link-consumer.xml";
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(path);
        //((ClassPathXmlApplicationContext)applicationContext).start();
        TwoService twoService = (TwoService) applicationContext.getBean("twoService");
        String say = twoService.say();
        System.out.println(say);
    }
}
